/**
 * 
 */
package pt.mleiria.sAction.hibernate;

import java.sql.Date;

/**
 * @author Manuel
 *
 */
public class IndexData {
	
	private Long id;
	private Index index;
	private String per;
	private Date stockDate;
	private double open;
	private double high;
	private double low;
	private double close;
	private double vol;
	private double openInt;
	/* (non-Javadoc)
	 * @see java.lang.Object#equals(java.lang.Object)
	 */
	@Override
	public String toString() {
		StringBuffer sb = new StringBuffer();
		sb.append("[id:" + id + ";");
		sb.append("index:" + index.toString() + ";");
		sb.append("per:" + per + ";");
		sb.append("stockDate:" + stockDate + ";");
		sb.append("open:" + open + ";");
		sb.append("high:" + high + ";");
		sb.append("low:" + low + ";");
		sb.append("close:" + close + ";");
		sb.append("vol:" + vol + ";");
		sb.append("openInt:" + openInt + "]");
		return sb.toString();
	}
	public IndexData() {
		
	}
	/**
	 * 
	 * @param index
	 * @param per
	 * @param stockDate
	 * @param open
	 * @param high
	 * @param low
	 * @param close
	 * @param vol
	 * @param openInt
	 */
	public IndexData(Index index, String per, Date stockDate, double open, double high, 
			double low, double close, double vol, double openInt) {
		this.index = index;
		this.per = per;
		this.stockDate = stockDate;
		this.open = open;
		this.high = high;
		this.low = low;
		this.close = close;
		this.vol = vol;
		this.openInt = openInt;
	}
	
	/**
	 * @return the id
	 */
	public Long getId() {
		return id;
	}
	/**
	 * @param id the id to set
	 */
	public void setId(Long id) {
		this.id = id;
	}
	
	/**
	 * @return the index
	 */
	public Index getIndex() {
		return index;
	}
	/**
	 * @param index the index to set
	 */
	public void setIndex(Index index) {
		this.index = index;
	}
	/**
	 * @return the per
	 */
	public String getPer() {
		return per;
	}
	/**
	 * @param per the per to set
	 */
	public void setPer(String per) {
		this.per = per;
	}
	/**
	 * @return the stockDate
	 */
	public Date getStockDate() {
		return stockDate;
	}
	/**
	 * @param stockDate the stockDate to set
	 */
	public void setStockDate(Date stockDate) {
		this.stockDate = stockDate;
	}
	/**
	 * @return the open
	 */
	public double getOpen() {
		return open;
	}
	/**
	 * @param open the open to set
	 */
	public void setOpen(double open) {
		this.open = open;
	}
	/**
	 * @return the high
	 */
	public double getHigh() {
		return high;
	}
	/**
	 * @param high the high to set
	 */
	public void setHigh(double high) {
		this.high = high;
	}
	/**
	 * @return the low
	 */
	public double getLow() {
		return low;
	}
	/**
	 * @param low the low to set
	 */
	public void setLow(double low) {
		this.low = low;
	}
	/**
	 * @return the close
	 */
	public double getClose() {
		return close;
	}
	/**
	 * @param close the close to set
	 */
	public void setClose(double close) {
		this.close = close;
	}
	/**
	 * @return the vol
	 */
	public double getVol() {
		return vol;
	}
	/**
	 * @param vol the vol to set
	 */
	public void setVol(double vol) {
		this.vol = vol;
	}
	/**
	 * @return the openInt
	 */
	public double getOpenInt() {
		return openInt;
	}
	/**
	 * @param openInt the openInt to set
	 */
	public void setOpenInt(double openInt) {
		this.openInt = openInt;
	}
	
}
